Don't paint in the trailing end of a wrapped line when the selection
authorOwen Taylor <otaylor@redhat.com>
Tue, 30 Nov 2004 21:33:36 +0000 (21:33 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 30 Nov 2004 21:33:36 +0000 (21:33 +0000)
commit126efafc406d5945663b5bd86c7833796e12e349
tree0279486a55ab6814906f6dd602d251565b50bcc9
parent1b45c64014d37e89fcaa2600cbda266f4d8cb5ca
Don't paint in the trailing end of a wrapped line when the selection

Tue Nov 30 16:25:29 2004  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextdisplay.c (render_para): Don't paint in the
        trailing end of a wrapped line when the selection
        starts after the line. (#159984, Matthias Clasen)

        * gtk/gtktextdisplay.c (gtk_text_layout_draw): pass in byte_count + 1
        for selection_end index when the selection end is past the end of the
        line so that render_para() can distinguish it from selection-end
        *at* the end of the line. Fixes newlines not being selected.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextdisplay.c